package com.training.oo.date;

import java.util.Calendar;

public class CalenderDemo {

	public static void main(String[] args) {
		Calendar c = Calendar.getInstance();
		
		System.out.println("年："+c.get(Calendar.YEAR));
		System.out.println("月："+c.get(Calendar.MONTH)+1);
		System.out.println("日："+c.get(Calendar.DAY_OF_MONTH));
		
		System.out.println("今年的第"+c.get(Calendar.DAY_OF_YEAR)+"天");
	}

}
